import Vue from "vue"
import Vuex from "vuex"
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		isLogin: false
	},
	mutations: {
		showLogin: function(state){
			uni.hideTabBar()
			state.isLogin = true
		},
		hideLogin: function(state){
			uni.showTabBar()
			state.isLogin = false
		}
	}
})

export default store